
import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './vuex/store'
import axios from 'axios'
//全局引入组件顶部底部
import HospitalTop from '@/components/file_top/index.vue';
import HospitalBottom from '@/components/flie_bottom/index.vue';
// 创建app程序
const app = createApp(App)

//将全局组件注册到app实例上
app.component('HospitalTop',HospitalTop)
app.component('HospitalBottom',HospitalBottom)
app.use(store);
app.use(router);
// 将 Axios 添加到全局属性上
app.config.globalProperties.$axios = axios;
//安装element-plus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

// 语言使用中文
import zhCn from 'element-plus/es/locale/lang/zh-cn'
app.use(ElementPlus, {
    locale: zhCn,
})
app.mount('#app')
